package org.yohann.ai.tool;

import lombok.AllArgsConstructor;
import org.springframework.ai.tool.annotation.Tool;
import org.yohann.ai.annotation.Tools;
import org.yohann.ai.pojo.ServiceInfo;
import org.yohann.ai.service.ServiceInfoService;
import org.yohann.ai.tool.base.BaseTools;

import java.util.List;

@Tools
@AllArgsConstructor
public class ServiceInfoTools implements BaseTools {

    private final ServiceInfoService service;

    @Tool(description = "获取全部服务信息列表")
    public List<ServiceInfo> getAllServiceInfoList() {
        return service.getAllServiceInfo();
    }
}
